<template>
  <plan-week :planType="3" planDetaiTitle="配送计划明细"
    exportName="车票周配送计划.xlsx"
    :dayPlanOption="dayPlanOption"
    :permissionList="permissionList">
  </plan-week>
</template>

<script>
import { mapGetters } from 'vuex'
import planWeek from './plan-week'
import {dayPlanOption} from '@/const/crud/subway/swstdeliveryplandraftweek'

export default {
  name: 'StDeliveryPlanWeek',
  data() {
    return {
      dayPlanOption: dayPlanOption
    }
  },
  components: {
    planWeek
  },
  computed: {
    ...mapGetters(['permissions']),
    permissionList() {
      return {
        submitBtn: this.vaildData(this.permissions.st_plan_week_delivery_submit, false),
        editBtn: this.vaildData(this.permissions.st_plan_week_delivery_edit, false),
        decomposeBtn: this.vaildData(this.permissions.st_plan_week_delivery_decompose, false),
        updateDecomposeBtn: this.vaildData(this.permissions.st_plan_week_delivery_updateDecompose, false),
	delBtn: this.vaildData(this.permissions.st_plan_week_delivery_delete, false),
        auditBtn: this.vaildData(this.permissions.st_plan_week_delivery_audit, false)
      }
    }
  },
  methods: {
  }
}
</script>

<style lang="scss" scoped>
</style>
